#
# The compiler and its flags
#
CXX= g++ 
INCLUDE=-I ../common
CXXFLAGS= -g -Wall $(INCLUDE)
LIBS= #-lnsl
#
# Sources and objects
#
COMMON=../common/error.cc\
	../common/signal.cc\
	../common/socketio.cc 

PROGRAM=server
SRCS=server.cc $(COMMON) 
OBJS=$(SRCS:.cc=.o)

all: $(PROGRAM)

$(PROGRAM): $(OBJS)
	$(CXX) $(CXXFLAGS) -o $@ $(OBJS) $(LIBS)

clean:
	@echo "Removing objects..."
	rm -f $(PROGRAM) *.o *~ core
